export const metadata = { sidebar_position: 50, title: "🟢 Repetition" };

# 🟢 Repetition

Repeating the same word within a prompt, or similar phrases can cause the model
to emphasize that word in the generated image(@oppenlaender2022taxonomy). For example, [@Phillip Isola](https://twitter.com/phillip_isola/status/1532189632217112577) generated these waterfalls with DALLE:

`A beautiful painting of a mountain next to a waterfall.`.

<div style={{ textAlign: "center" }}>
  <Image
    src="/docs/assets/images_chapter/bad_water.webp"
    className="img-docs"
    width={1612}
    height={644}
    style={{ width: "750px", margin: "auto" }}
  />
</div>

`A very very very very very very very very very very very very very very very very very very very very very very beautiful painting of a mountain next to a waterfall.`

<div style={{ textAlign: "center" }}>
  <Image
    src="/docs/assets/images_chapter/good_water.webp"
    className="img-docs"
    width={1612}
    height={652}
    style={{ width: "750px", margin: "auto" }}
  />
</div>

The emphasis on the word `very` seems to improve generation quality! Repetition can
also be used to emphasize subject terms. For example, if you want to generate an image
of a planet with aliens, using the prompt `A planet with aliens aliens aliens aliens aliens aliens aliens aliens aliens aliens aliens aliens`
will make it more likely that aliens are in the resultant image. The following images are made with Stable Diffusion.

`A planet with aliens`

<div style={{ textAlign: "center" }}>
  <Image
    src="/docs/assets/images_chapter/planet.webp"
    className="img-docs"
    width={550}
    height={510}
    style={{ width: "250px", margin: "auto" }}
  />
</div>

`A planet with aliens aliens aliens aliens aliens aliens aliens aliens aliens aliens aliens aliens`

<div style={{ textAlign: "center" }}>
  <Image
    src="/docs/assets/images_chapter/planet_aliens.webp"
    className="img-docs"
    width={560}
    height={572}
    style={{ width: "250px", margin: "auto" }}
  />
</div>

## Notes

This method is not perfect, and using weights (next article) is often a better option.
